package com.yuandian.enums;

/**
 *	副本量纲 枚举
 */
public enum SubDimensionEnum {

	XTYWL("xtywl", "系统业务量"),
	YHSYL("yhsyl", "用户使用量"),
	ZHKTL("zhktl", "账号开通量"),
	CCJFL("ccjfl", "存储交付量"),
	XTCLL("xtcll", "系统处理量"),
	ZJJFL("zjjfl", "组件交付量"),
	SJXXL("sjxxl", "功能交付量"),
	GNJFL("gnjfl", "功能交付量"),
	DMGJL("dmgjl", "代码构建量"),
	YWCDL("ywcdl", "业务触达量"),
	SBJFL("sbjfl", "设备交付量"),
	MXXLL("mxxll", "模型训练量"),
	YWSCL("ywscl", "业务时长量"),
	JSJFL("jsjfl", "计算交付量"),
	RWZXL("rwzxl", "任务执行量"),

	;


	/**
	 * 返回码
	 */
	private String code;

	/**
	 * 返回信息
	 */
	private String msg;

	SubDimensionEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public static String getMsgByCode(String code){
		for (SubDimensionEnum moduleEnum : SubDimensionEnum.values()) {
			if(moduleEnum.getCode().equals(code)){
				return moduleEnum.getMsg();
			}
		}
		throw new IllegalArgumentException("Invalid enum Code: " + code);
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

}
